package com.explorati.design_pattern.creational.singleton;

public class T implements Runnable {

	@Override
	public void run() {
		// LazySingleton lazySingleton = LazySingleton.getInstance();
		// System.out.println(Thread.currentThread().getName() + " " +
		// lazySingleton);

		// LazyDoubleCheckSingleton instance =
		// LazyDoubleCheckSingleton.getInstance();
		// System.out.println(Thread.currentThread().getName() + " " +
		// instance);

		// StaticInnerClassSingleton instance =
		// StaticInnerClassSingleton.getInstance();

		// ContainerSingleton.putInstance("object", new Object());
		// Object instance = ContainerSingleton.getInstance("object");
		for (int i = 0; i < 5; i++) {
			ThreadLocalInstance2 instance = ThreadLocalInstance2.getInstance();
			System.out.println(Thread.currentThread().getName() + " " + instance);
		}

	}

}
